package com.breeze.toolkit.util;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by john on 2016/8/23.
 */
public class ToastUtil {
	private ToastUtil() {}

	public static void show(Context context, String msg) {
		if (context != null) {
			Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
		}
	}

	public static void showNoNetworkToast(Context context) {
		show(context, ConstantsUtil.NO_NETWORK_NOTICE);
	}
}
